import React from 'react';
import {ToolHistory} from '../utils';

/**
 * 404页面
 */
export default class Home extends React.Component {
  //界面渲染函数
  render() {
    return (
      <div>
        <h1 style={{textAlign: 'center'}}>404</h1>
        <h6 style={{textAlign: 'center'}}>您访问的页面不存在!</h6>
        <div style={{textAlign: 'center'}}>
          <a onClick={() => ToolHistory.href('/')}>回到首页</a>
        </div>
      </div>
    );
  }
}
